package com.myosw.service;

import java.util.List;

import com.myosw.dao.SearchlogDao;
import com.myosw.entity.SearchlogShow;

public class SearchlogService 
{
	public SearchlogShow getVisitlog(String keyword) 
	{
		SearchlogShow  searchlogShow = new SearchlogShow ();
		searchlogShow.setToday(searchlogDao.getToday(keyword));
		searchlogShow.setYesterday(searchlogDao.getYesterday(keyword));
		searchlogShow.setWeek(searchlogDao.getWeek(keyword));
		searchlogShow.setMonth(searchlogDao.getMonth(keyword));
		searchlogShow.setCount(searchlogDao.getAll(keyword));
		return searchlogShow;
		
	}
	public List<SearchlogShow> getTop(int from,int to) 
	{
		return searchlogDao.getTop(from, to);
	}
	
	
	SearchlogDao searchlogDao = new SearchlogDao();
}
